Release 10.1A: OpenEdge Development:
ProDataSets
Returning the partial ProDataSet to the client
When the user tabs out of the last of the filter fields, you want to pass the selection to
fetchOrdersand get the ProDataSet with selectedOrders back.
![]()
To update your code:
- In the procedure
PickOrder.w, define this trigger blockON LEAVE OF cSalesRep:
The code first constructs a where-clause using whichever of the filter fields were filled in, and passes this to
fetchOrders. It gets the ProDataSet back as anOUTPUTparameter. Since the ProDataSet is not passed by reference, any data that comes back replaces whatever might have been in the local ProDataSet before, so there’s no need to empty the ProDataSet in advance. If you wanted to have the new set ofOrders appended to the ones already there, then you could use theAPPENDoption on the parameter to do this.- Try running this much of the
PickOrder.wprocedure. Enter some selection criteria forOrders and tab through theSalesRepfield.Here, we retrieve all the
Orders forCustomer 1andSalesRep “HXM”:
![]()
You see that no
OrderLineorIteminformation came back, because those tables were set toNO-FILL
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |